import request from './request'

/**
 * 
 * @param {*} data 
 * @returns 
 * 添加银行卡
 */
export const addBankCard = (params) => {
    return request({
        url: '/bindBank',
        method: 'post',
        params
    })
}
/**
 * 
 * @returns 
 * 资金明细
 */
export const MoneyLog = (params) => {
    return request({
        url: '/AdminUserMoneyLog',
        method: 'get',
        params
    })
}

/**
 * 
 * @param {*} data 
 * @returns 
 * 申请提现
 */
export const WithdrawalLogApply = (params) => {
    return request({
        url: '/AdminUserWithdrawalLog/apply',
        method: 'post',
        params
    })
}

/**
 * 
 * @returns 
 * 商家提现日志
 */
export const WithdrawalLog = (params) => {
    return request({
        url: '/AdminUserWithdrawalLog',
        method: 'get',
        params
    })
}

/**
 * 
 * @param {*} data 
 * @returns 
 * 提现通过
 */
export const WithdrawalLogApplyAdopt = (params) => {
    return request({
        url: '/AdminUserWithdrawalLog/applyAdopt',
        method: 'post',
        params
    })
}

/**
 * 
 * @param {*} data 
 * @returns 
 * 拒绝提现
 */
export const WithdrawalLogApplyRefuse = (params) => {
    return request({
        url: '/AdminUserWithdrawalLog/applyRefuse',
        method: 'post',
        params
    })
}

/**
 * 
 * @returns 
 * 获取商家的提现费率
 */
export const getBusinessWithdrawalRate = () => {
    return request({
        url: '/getWithdrawalRate',
        method: 'get'
    })
}
/**
 * 
 * @returns 
 * 获取商家的可提现金额
 */
export const getAdminUserAmount = () => {
    return request({
        url: '/getAdminUserAmount',
        method: 'get'
    })
}


